package dao;

import entity.Comment;
import org.apache.ibatis.annotations.Param;
import vo.CommentVo;

import java.util.List;

public interface CommentDao {

    //加载评论
    List<CommentVo> selectAllComment(CommentVo c);

    //添加评论
    int insertComment(Comment comment);

    //获取赞数
    int queryPraiseCountByCommentId(@Param("id") Integer id);

    //加载待审核评论
    List<CommentVo> selectAllCommentByStatus(CommentVo c);

    //更新评论
    void updateCommentStatusById(CommentVo c);

    //加载带管理评论
    List<CommentVo> findCommentByChapterId(CommentVo c);

}
